# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-oci
pkgver=2.74.0
pkgrel=0
pkgdesc="Oracle Cloud Infrastructure Python SDK"
url="https://docs.oracle.com/en-us/iaas/tools/python/2.53.1/index.html"
arch="noarch"
license="Apache-2.0"
depends="py3-certifi py3-circuitbreaker py3-cryptography py3-dateutil py3-openssl py3-tz"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-vcrpy"
source="$pkgname.$pkgver.zip::https://github.com/oracle/oci-python-sdk/archive/refs/tags/v$pkgver.zip
	vcr.patch
	"
builddir="$srcdir/oci-python-sdk-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir"/build/lib pytest tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
a2534355bf3a4d52c89279782b2703b861466857f4fbb7eaedd39918b1ea5d97aba45cfae4277fa04f73b42a126a88c161963904a799fae16804884f3d6e8a68  py3-oci.2.74.0.zip
e88495f19a3b9bd4b4b086007e2c93d6200aa316e93c1ec58b31794afb58967994f061a5ad1346edbbecd9119cea7a60c1e2ac6cba99f78b4e349b8f594ce01f  vcr.patch
"
